package spe.ui.editor.part;

import org.eclipse.draw2d.IFigure;

import spe.model.spem.NodeElement;
import spe.ui.editor.figure.NodeElementFigure;

public class NodeElementEditPart extends AbstractElementNodeEditPart
{
	public NodeElementEditPart(NodeElement nodeElement)
	{
		setModel(nodeElement);
	}

	@Override
	protected IFigure createFigure() 
	{
		return (new NodeElementFigure( ((NodeElement)getModel()).getIconDescriptor().createImage()) );
	}

}
